/*
@STI LICENSE
(C) 2006-2008 Universit�t Innsbruck.

This file is part of myOntology.

myOntologyis free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

myOntologyis distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with myOntology.  If not, see <http://www.gnu.org/licenses/>.

@STI LICENSE */
package org.myontology.view.items;

import java.util.ResourceBundle;

import org.apache.log4j.Logger;
import org.myontology.model.Property;

public abstract class AbstractComponentBuilder {

	protected static Logger logger = Logger.getLogger(ComponentBuilder.class);
	public static final String CSSIDFIELD = "div";
	public static final String CSSIDCONTENT = "divcontent";
	public static final String CSSCLASSFIELD = "elementfield";
	public static final String CSSCLASSCONTENT = "fieldcontent";
	public static final String CSSCLASSTITLE = "fieldtitle";
	public static final String NOTHINGSELECTED = "-";
	
	protected Property property;
	protected FormBuilder builder;
	protected ResourceBundle validatorResource;

	public AbstractComponentBuilder(Property property,FormBuilder builder) {
		this.property = property;
		this.builder = builder;
		validatorResource = ResourceBundle.getBundle("errors",builder.getLocale());
	}


}
